package com.jy.appmarket.network.resultdata;

import com.jy.app.market.idata.Doc;
import com.jy.app.market.idata.data.EscRecommend;

/**
 * 类说明：
 * 
 * @author kaixun.huang
 * @date 2014-5-7
 * @version 1.0
 */

public class EscRecommendResult extends BaseResultData {
	private EscRecommend mEscRecommend;

	public EscRecommend getEscRecommend() {
		return mEscRecommend;
	}

	@Override
	public boolean parseResult(String result) {
		Doc doc = Doc.fromJson(result);
		if (!doc.isOk()) {
			return false;
		}
		setDataType(doc.getDataType());
		setStatus(doc.getStatus());
		setMessage(doc.getMessage());

		if (doc.isType(EscRecommend.class)) {
			mEscRecommend = doc.getData();
		}

		return true;
	}
}
